var index = require("./indexCtrl");
var selfMediaCtrl = require("./selfMediaCtrl");
var userCtrl = require("./userCtrl");
var recruit = require("./recruitCtrl");
var express = require("express");
var r = express.Router();

//乐看首页
r.get("/",index.index);
//乐看推荐获取轮播图 top10
r.post("/getRecommendMain",index.getRecommendMain);
//获取推荐分页信息
r.post("/getMainHotAdvList",index.getMainHotAdvList);
//乐看首页轮播
r.post("/getCarouselList",index.getCarouselList);
//获取主页分类
r.post("/getCategoryList",index.getCategoryList);
//获取主页推荐广告列表
r.post("/getRecommendList",index.getRecommendList);
//获取主页企业广告列表
r.post("/getEnterpriseList",index.getEnterpriseList);
//获取主页自媒体广告列表
r.post("/getMediaList",index.getMediaList);
//获取主页城市列表
r.post("/getCityList",index.getCityList);
//获取主页城市广告列表
r.post("/getCityAdvList",index.getCityAdvList);
//获取主页传统广告列表
r.post("/getTraditionList",index.getTraditionList);
//获取主页热点分页列表
r.post("/getHotAdvList",index.getHotAdvList);
//获取主页静态广告列表
r.post("/getStaticList",index.getStaticList);

//媒体首页
r.get("/see/mediaHome",index.mediaHome);
//通过用户id获取企业信息
r.post("/getUserInfo",index.getUserInfo);
//通过用户id关注
r.post("/getFollowAdd",index.getFollowAdd);
//通过用户id 关注id 取消关注
r.post("/getFollowDelete",index.getFollowDelete);
//通过用户id 获取视频列表
r.post("/getUserAdvList",index.getUserAdvList);
//通过用户id 获取相册列表
r.post("/getAllAlbumByUserId",index.getAllAlbumByUserId);
//通过用户id 获取产品列表
r.post("/getAllProductByUserId",index.getAllProductByUserId);

//广告视频
r.get("/see/adVideo",index.adVideo);
//获取播放视频信息
r.post("/getAdvById",index.getAdvById);
//通过视频id获取相关推荐信息
r.post("/getAdvRecommendByAdvId",index.getAdvRecommendByAdvId);

//自媒体
r.get("/see/selfMedia",selfMediaCtrl.selfMedia);
//获取自媒体主页轮播图列表
r.post("/selfMedia/getMainCarouselList",selfMediaCtrl.getMainCarouselList);
//获取头条新闻信息
r.post("/selfMedia/getHotNewsList",selfMediaCtrl.getHotNewsList);
//通过当前登录用户id获取分类信息
r.post("/selfMedia/getUserCategoryList",selfMediaCtrl.getUserCategoryList);
//获取自媒体主页top10列表
r.post("/selfMedia/getMainTop10List",selfMediaCtrl.getMainTop10List);
//获取自媒体人气分页信息
r.post("/selfMedia/getMainHotAdvList",selfMediaCtrl.getMainHotAdvList);
//获取所有自媒体分类信息
r.post("/selfMedia/getMainAllCategoryList",selfMediaCtrl.getMainAllCategoryList);
//获取主页圈子列表
r.post("/selfMedia/getCirclesList",selfMediaCtrl.getCirclesList);
//获取自媒体主页附近分页信息
r.post("/selfMedia/getMainNearbyAdvList",selfMediaCtrl.getMainNearbyAdvList);
//增加自媒体用户分类信息
r.post("/selfMedia/addUserCategory",selfMediaCtrl.addUserCategory);
//二期改版新接口
//获取自媒体top10列表
r.post("/mediaAdv/getMediaTop10List",selfMediaCtrl.getMediaTop10List);
//获取自媒体圈子列表
r.post("/mediaAdv/getMediaCirclesList",selfMediaCtrl.getMediaCirclesList);
//获取自媒体人气分页信息
r.post("/mediaAdv/getMediaHotAdvList",selfMediaCtrl.getMediaHotAdvList);
//增加自媒体附近分页信息
r.post("/mediaAdv/getMediaNearbyAdvList",selfMediaCtrl.getMediaNearbyAdvList);


//自媒体二级页面
r.get("/see/selfMediaPage",selfMediaCtrl.selfMediaPage);
//自媒体分类轮播
r.post("/selfMedia/getCategoryCarouselList",selfMediaCtrl.getCategoryCarouselList);
//获取自媒体分类top10列表
r.post("/selfMedia/getCategoryTop10List",selfMediaCtrl.getCategoryTop10List);
//获取自媒体分类人气分页信息
r.post("/selfMedia/getCategoryHotAdvList",selfMediaCtrl.getCategoryHotAdvList);
//获取自媒体分类页附近分页信息
r.post("/selfMedia/getCategoryNearbyAdvList",selfMediaCtrl.getCategoryNearbyAdvList);
//获取分类页圈子列表
r.post("/selfMedia/getCategoryCirclesList",selfMediaCtrl.getCategoryCirclesList);
//获取中国省市区列表
r.post("/selfMedia/getChinaList",selfMediaCtrl.getChinaList);
//获取海外国家 ,州市列表, 州和市
r.post("/selfMedia/getCountryStateList",selfMediaCtrl.getCountryStateList);
//自媒体筛选
r.get("/selfMedia/mediaScreen",selfMediaCtrl.mediaScreen);
//筛选-自媒体分类页-查询配置
r.post("/selfMedia/getCategoryQuery",selfMediaCtrl.getCategoryQuery);
//筛选-结果
r.post("/selfMedia/getCategoryQueryList",selfMediaCtrl.getCategoryQueryList);
//获取自媒体筛选分页信息
r.post("/selfMedia/getCategorySearchAdvList",selfMediaCtrl.getCategorySearchAdvList);
//获取自媒体圈子筛选
r.post("/selfMedia/getMediaSearchCirclesList",selfMediaCtrl.getMediaSearchCirclesList);

//我的关注
r.get("/see/myAttention",index.myAttention);

//乐看集市
r.get("/see/market",index.market);

//乐看-企业广告
r.get("/see/enterpriseAd",index.enterpriseAd);
//乐看-企业广告轮播图
r.post("/see/getEnterpriseCarouselList",index.getEnterpriseCarouselList);
//乐看-企业广告分类
r.post("/see/getEnterpriseCategoryList",index.getEnterpriseCategoryList);
//乐看-获取企业广告热度类型列表
r.post("/see/getEnterpriseHotAdvTypeList",index.getEnterpriseHotAdvTypeList);
//乐看-获取企业广告热度列表
r.post("/see/getEnterpriseHotAdvList",index.getEnterpriseHotAdvList);
//乐看-企业广告-详情
r.get("/see/adDetails",index.adDetails);
//乐看-企业广告-详情分享
r.get("/see/adDetails1",index.adDetails1);
//乐看-获取企业广告视频信息
r.post("/see/getEnterpriseAdvById",index.getEnterpriseAdvById);
//通过用户id 视频id state点赞状态 1点赞0取消点赞
r.post("/see/getPraise",index.getPraise);
//通过用户id 视频id state收藏状态 1收藏0取消收藏
r.post("/see/getCollection",index.getCollection);
//播放完成给用户的积分
r.post("/see/endPlayEnterpriseAdvById",index.endPlayEnterpriseAdvById);
//获取企业信息
r.post("/see/getEnterpriseId",index.getEnterpriseId);
//获取企业历史发布列表
r.post("/see/getEnterpriseReleaseAdvList",index.getEnterpriseReleaseAdvList);
//获取企业广告分类数据
r.post("/see/getEnterpriseListByCategory",index.getEnterpriseListByCategory);
//乐看-企业广告-二级分类列表
r.get("/see/enterpriseAdpage",index.enterpriseAdpage);

//自媒体视频页
r.get("/see/selfMediaVd",selfMediaCtrl.selfMediaVd);
//自媒体-获取企业广告视频信息
r.post("/selfMedia/getMediaAdvAdvById",selfMediaCtrl.getMediaAdvAdvById);
//通过用户id 视频id state点赞状态 1点赞0取消点赞
r.post("/selfMedia/getPraise",selfMediaCtrl.getPraise);
//通过用户id 视频id state收藏状态 1收藏0取消收藏
r.post("/selfMedia/getCollection",selfMediaCtrl.getCollection);
//获取自媒体评论列表
r.post("/selfMedia/getInfoMediaAdvCommentList",selfMediaCtrl.getInfoMediaAdvCommentList);
//自媒体-打开红包
r.post("/selfMedia/getRedPacketsMediaAdvById",selfMediaCtrl.getRedPacketsMediaAdvById);
//职位详情
r.get("/see/jobDetails",selfMediaCtrl.jobDetails);
//通过招聘id获取招聘信息
r.post("/selfMedia/getRecruitById",selfMediaCtrl.getRecruitById);
//自媒体打赏
r.post("/selfMedia/mediaReward",selfMediaCtrl.mediaReward);
//自媒体-发表评论
r.post("/selfMedia/comment",selfMediaCtrl.comment);
//自媒体评论点赞
r.post("/selfMedia/praiseMediaAdvComment",selfMediaCtrl.praiseMediaAdvComment);
//自媒体-获取评论回复列表
r.post("/selfMedia/getInfoMediaAdvCommentReplyList",selfMediaCtrl.getInfoMediaAdvCommentReplyList);
//评论详情
r.get("/see/commentInfo",selfMediaCtrl.commentInfo);
//自媒体-评论回复-详情
r.post("/selfMedia/getAdvCommentsByCommentId",selfMediaCtrl.getAdvCommentsByCommentId);

//登录
r.get("/loginIndex",userCtrl.loginIndex);
//手机验证码登录
r.get("/telLogin",userCtrl.telLogin);
//预发短信
r.post("/user/presendMessage",userCtrl.presendMessage);
//注册短信
r.post("/user/sendregistermessage",userCtrl.sendregistermessage);
//注册
r.post("/user/register",userCtrl.register);
//通过用户手机号 密码登录
r.post("/user/weblogin",userCtrl.weblogin);
//通过用户手机号 验证码登录
r.post("/user/webloginByCode",userCtrl.webloginByCode);
//登录短信
r.post("/user/sendloginmessage",userCtrl.sendloginmessage);
//忘记密码短信
r.post("/user/sendforgetmessage",userCtrl.sendforgetmessage);
//设置忘记密码
r.post("/user/setForgetCode",userCtrl.setForgetCode);
//初始化数据
r.post("/user/data",userCtrl.data);
//初始化电商数据
r.post("/user/shopData",userCtrl.shopData);
//好友个人主页
r.get("/userHomepage",userCtrl.userHomepage);
//自媒体用户信息
r.post("/user/getUserInfo",userCtrl.getUserInfo);
//通过用户id 返回用户的自媒体列表
r.post("/user/getUserMediasList",userCtrl.getUserMediasList);
//通过用户id 返回用户的商品列表
r.post("/user/getUserProductsList",userCtrl.getUserProductsList);
//地址管理
r.get("/address",userCtrl.address);
//用户收货地址列表
r.post("/user/getUserDeliveryAddressList",userCtrl.getUserDeliveryAddressList);
//添加收货地址
r.get("/addAddress",userCtrl.addAddress);
//添加修改用户收货地址
r.post("/user/addUserDeliveryAddress",userCtrl.addUserDeliveryAddress);
//删除用户收货地址
r.post("/user/deleteUserDeliveryAddress",userCtrl.deleteUserDeliveryAddress);
//我的商品
r.get("/myGoods",userCtrl.myGoods);
//添加商品
r.get("/addGoods",userCtrl.addGoods);
//商品详情
r.get("/addGoodsInfo",userCtrl.addGoodsInfo);
//运费模板
r.get("/freightTemplate",userCtrl.freightTemplate);
//运费列表
r.post("/user/freightList",userCtrl.freightList);
//修改运费模板
r.get("/modifyTemplate",userCtrl.modifyTemplate);
//新建运费模板
r.get("/newTemplate",userCtrl.newTemplate);
//保存运费(增加和修改运费)
r.post("/user/savefreight",userCtrl.savefreight);
//删除运费
r.post("/user/deletefreight",userCtrl.deletefreight);
//删除子运费
r.post("/user/deleteareafreight",userCtrl.deleteareafreight);
//个人商品详情
r.get("/userGoodsInfo",userCtrl.userGoodsInfo);
//获取个人商品详情
r.post("/user/getMediaProductById",userCtrl.getMediaProductById);
//企业信息
r.get("/see/enterpriseInfo",userCtrl.enterpriseInfo);
//完善个人信息
r.get("/user/perfectUserInfo",userCtrl.perfectUserInfo);
//完善个人信息-第一步(生日，性别)
r.post("/user/setFirstInfo",userCtrl.setFirstInfo);
//完善个人信息-第二步(头像，昵称)
r.get("/user/addName",userCtrl.addName);
//完善个人信息-第三步(我的标签)
r.get("/user/myLable",userCtrl.myLable);
//获取个人标签
r.post("/user/getUserLabel",userCtrl.getUserLabel);
//推荐用户
r.post("/user/saveUserLabel",userCtrl.saveUserLabel);
//感兴趣内容
r.get("/user/myInterest",userCtrl.myInterest);
//充值
r.get("/user/recharge",userCtrl.recharge);
//推荐用户
r.post("/user/recommendFans",userCtrl.recommendFans);
//获取用户乐币
r.post("/user/getUserIntegral",userCtrl.getUserIntegral);
//获取配置文件
r.post("/release/releaseConfig",userCtrl.releaseConfig);

//城市广告
r.get("/see/cityAd",selfMediaCtrl.cityAd);
//城市广告主页信息
r.post("/cityAd/getMain",selfMediaCtrl.getMain);
//城市广告人气信息
r.post("/cityAd/getCityAdvList",selfMediaCtrl.getCityAdvList);
//城市广告附近信息
r.post("/cityAd/getCityNearbyAdvList",selfMediaCtrl.getCityNearbyAdvList);
//城市广告热门列表
r.get("/see/cityAdHotlist",selfMediaCtrl.cityAdHotlist);
//获取城市广告热门城市列表
r.post("/cityAd/getAllHots",selfMediaCtrl.getAllHots);
//城市广告详情
r.get("/see/cityAdInfo",selfMediaCtrl.cityAdInfo);
//获取城市广告详细信息
r.post("/cityAd/getCityInfoById",selfMediaCtrl.getCityInfoById);
//获取城市广告分类列表
r.post("/cityAd/getCategoryCityAdvList",selfMediaCtrl.getCategoryCityAdvList);
//城市广告游记详情
r.get("/cityAd/travelsInfo",selfMediaCtrl.travelsInfo);
//获取城市游记详情
r.post("/cityAd/getCityAdvInfo",selfMediaCtrl.getCityAdvInfo);
//城市广告视频页
r.get("/cityAd/cityAdVideo",selfMediaCtrl.cityAdVideo);
//获取城市视频详情
r.post("/cityAd/getCityAdvMediaInfo",selfMediaCtrl.getCityAdvMediaInfo);
//通过用户id 视频id state点赞状态 1点赞0取消点赞
r.post("/cityAd/getCityAdPraise",selfMediaCtrl.getCityAdPraise);
//通过用户id 视频id state收藏状态 1收藏0取消收藏
r.post("/cityAd/getCityAdCollection",selfMediaCtrl.getCityAdCollection);
//获取自媒体评论列表
r.post("/cityAd/getCityAdCommentList",selfMediaCtrl.getCityAdCommentList);
//城市广告-选择城市
r.get("/cityAd/chooseCity",selfMediaCtrl.chooseCity);
//城市打赏
r.post("/cityAd/cityAdReward",selfMediaCtrl.cityAdReward);
//城市广告-发游记
r.get("/cityAd/travelNotes",selfMediaCtrl.travelNotes);
//城市广告-游记购买展位
r.post("/cityAd/buyBooth",selfMediaCtrl.buyBooth);
//城市广告-城市搜索
r.get("/cityAd/citySearch",selfMediaCtrl.citySearch);
//城市广告-搜索结果列表页
r.get("/cityAd/citySearchList",selfMediaCtrl.citySearchList);

//乐看搜索历史
r.post("/mediaAdv/searchHistory",selfMediaCtrl.searchHistory);
//搜索自媒体-提示框
r.post("/mediaAdv/searchMedia",selfMediaCtrl.searchMedia);
//清空自媒体搜索历史
r.post("/mediaAdv/emptySearchHistory",selfMediaCtrl.emptySearchHistory);
//自媒体-搜索-列表
r.post("/mediaAdv/searchMediaList",selfMediaCtrl.searchMediaList);

//乐看-频道导航
r.get("/see/channelNav",index.channelNav);
//摄影
r.get("/see/photography",index.photography);

//招聘
r.get("/see/recruitPage",index.recruitPage);
//招聘主页轮播
r.post("/recruit/getCategoryCarouselList",recruit.getCategoryCarouselList);
//招聘主页职位列表
r.post("/recruit/getEnterpriseRecruitList",recruit.getEnterpriseRecruitList);
//获取招聘圈子列表
r.post("/recruit/getCategoryCirclesList",recruit.getCategoryCirclesList);
//招聘搜索
r.get("/see/recruitScreen",index.recruitScreen);
//招聘搜索历史
r.post("/recruit/recruitSearchHistory",recruit.recruitSearchHistory);
//搜索职位
r.post("/recruit/searchRecruit",recruit.searchRecruit);
//招聘搜索结果
r.get("/see/recruitScreenResult",index.recruitScreenResult);
//招聘职位详情
r.post("/recruit/getRecruitInfo",recruit.getRecruitInfo);
//招聘-职位企业信息
r.post("/recruit/getEnterpriseRecruitListById",recruit.getEnterpriseRecruitListById);
//招聘视频页
r.get("/see/recruitVideo",index.recruitVideo);
//公司信息
r.get("/see/companyInfo",index.companyInfo);
//投递职位
r.post("/recruit/deliveryRecruitInfo",recruit.deliveryRecruitInfo);
//删除搜索历史
r.post("/recruit/deleteSearchHistory",recruit.deleteSearchHistory);
//清空搜索历史
r.post("/recruit/emptySearchHistory",recruit.emptySearchHistory);
//历史观看列表
r.get("/see/history",index.history);
//轮播跳转页面
r.get("/see/carouselsPage",index.carouselsPage);
module.exports = r;